package com.member.member.feign;

import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class UserFeignClientFallback implements HelloFeignService {

    @Override
    public List<String> test() {
        List<String> list=new ArrayList<>();
        list.add("服务降级啦");
        return list;
    }

    @Override
    public List<String> test1() {
        return null;
    }

    public static void main(String[] args) {
        List<SecurityProperties.User> users=new ArrayList<>();
        while (true){
            SecurityProperties.User user=new SecurityProperties.User();
            user.setName("妻孥上次u是");
            user.setPassword("dede");
            users.add(user);
        }
    }
}